package com.crm.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.sql.Timestamp;


/**
 * The persistent class for the MAINTAIN database table.
 * 
 */
@Entity
@NamedQuery(name="Maintain.findAll", query="SELECT m FROM Maintain m")
public class Maintain implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="MAINTAIN_MAINTAINID_GENERATOR", sequenceName="SEQ2")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="MAINTAIN_MAINTAINID_GENERATOR")
	@Column(name="MAINTAIN_ID")
	private Long maintainId;

	private String address;

	@Column(name="CLIENT_ID")
	private BigDecimal clientId;

	private String context;

	private BigDecimal cost;

	@Column(name="DEPT_ID")
	private BigDecimal deptId;

	@Column(name="FLOW_ID")
	private String flowId;

	@Column(name="GET_TIME")
	private Timestamp getTime;

	@Temporal(TemporalType.DATE)
	@Column(name="GIVE_DATE")
	private Date giveDate;

	@Column(name="MAINTAIN_IS_DEL")
	private String maintainIsDel;

	private String note;

	@Column(name="PRODUCT_ID")
	private BigDecimal productId;

	private String progress;

	private String remarks;

	@Column(name="\"STATE\"")
	private String state;

	public Maintain() {
	}

	public Long getMaintainId() {
		return this.maintainId;
	}

	public void setMaintainId(Long maintainId) {
		this.maintainId = maintainId;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public BigDecimal getClientId() {
		return this.clientId;
	}

	public void setClientId(BigDecimal clientId) {
		this.clientId = clientId;
	}

	public String getContext() {
		return this.context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public BigDecimal getCost() {
		return this.cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getDeptId() {
		return this.deptId;
	}

	public void setDeptId(BigDecimal deptId) {
		this.deptId = deptId;
	}

	public String getFlowId() {
		return this.flowId;
	}

	public void setFlowId(String flowId) {
		this.flowId = flowId;
	}

	public Timestamp getGetTime() {
		return this.getTime;
	}

	public void setGetTime(Timestamp getTime) {
		this.getTime = getTime;
	}

	public Date getGiveDate() {
		return this.giveDate;
	}

	public void setGiveDate(Date giveDate) {
		this.giveDate = giveDate;
	}

	public String getMaintainIsDel() {
		return this.maintainIsDel;
	}

	public void setMaintainIsDel(String maintainIsDel) {
		this.maintainIsDel = maintainIsDel;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public BigDecimal getProductId() {
		return this.productId;
	}

	public void setProductId(BigDecimal productId) {
		this.productId = productId;
	}

	public String getProgress() {
		return this.progress;
	}

	public void setProgress(String progress) {
		this.progress = progress;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

}